class AddStructureForTaggings < ActiveRecord::Migration
  def self.up
		create_table :taggings, :force => true, :options => 'DEFAULT CHARSET=UTF8' do |t|
			t.column :taggable_id, :integer
			t.column :tag_id, :integer
			t.column :taggable_type, :string
		end
	
		create_table :tags, :force => true, :options => 'DEFAULT CHARSET=UTF8' do |t|
			t.column :name, :string
		end

  end

  def self.down
		drop_table :taggings
		drop_table :tags
  end
end
